Download

interface Download : Observable<T>

A download activity.

Functions

Link copied to clipboard
abstract fun cancel()
Cancels this download.
Link copied to clipboard
abstract fun isPaused(): Boolean
Indicates whether this download is paused.
Link copied to clipboard
abstract fun <E : T?> on(eventClass: Class<E>, observer: Observer<E>): Subscription
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
abstract fun pause()
Pauses this download.
Link copied to clipboard
abstract fun resume()
Resumes this download.
Link copied to clipboard
abstract fun state(): DownloadState
Returns the download state.
Link copied to clipboard
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
abstract fun target(): DownloadTarget
Returns the download target.